package kirk.ocean.pp.model;

import java.util.Collection;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class Tag {
	@Id
	private Long id;
	private TextValue label;
	private TextValue description;
	@Temporal(TemporalType.TIMESTAMP)
	private Date createdOn;
	private PPUser author;
	private Collection<Content> tagsContent;
	private Collection<Flag> flags;
	private Collection<PPUser> approved;
	private Collection<PPUser> disapproved;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public TextValue getLabel() {
		return label;
	}
	public void setLabel(TextValue label) {
		this.label = label;
	}
	public TextValue getDescription() {
		return description;
	}
	public void setDescription(TextValue description) {
		this.description = description;
	}
	public Date getCreatedOn() {
		return createdOn;
	}
	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}
	public PPUser getAuthor() {
		return author;
	}
	public void setAuthor(PPUser author) {
		this.author = author;
	}
	public Collection<Content> getTagsContent() {
		return tagsContent;
	}
	public void setTagsContent(Collection<Content> tagsContent) {
		this.tagsContent = tagsContent;
	}
	public Collection<Flag> getFlags() {
		return flags;
	}
	public void setFlags(Collection<Flag> flags) {
		this.flags = flags;
	}
	public Collection<PPUser> getApproved() {
		return approved;
	}
	public void setApproved(Collection<PPUser> approved) {
		this.approved = approved;
	}
	public Collection<PPUser> getDisapproved() {
		return disapproved;
	}
	public void setDisapproved(Collection<PPUser> disapproved) {
		this.disapproved = disapproved;
	}
	
}
